翻訳と辞書
Words near each other
・ Diamond willow
・ Diamond Y springsnail
・ Diamond Yukai
・ Diamond, California
・ Diamond, Honour and Mercosur Konex Award winners
・ Diamond, Illinois
・ Diamond, Indiana
・ Diamond, Kanawha County, West Virginia
・ Diamond, Logan County, West Virginia
・ Diamond, Missouri
・ Diamond, Ohio
・ Diamond, Oregon
・ Diamond, U.S. Virgin Islands
・ Diamond, West Virginia
・ Diamond-like carbon
Diamond-square algorithm
・ Diamond-Star Motors
・ Diamond/Over the Clouds
・ Diamondback
・ Diamondback (comics)
・ Diamondback (missile)
・ Diamondback (roller coaster)
・ Diamondback Airboats
・ Diamondback Bicycles
・ Diamondback moth
・ Diamondback rattlesnake
・ Diamondback terrapin
・ Diamondback tritonia
・ Diamondhead (comics)
・ Diamondhead, Mississippi


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Diamond-square algorithm : ウィキペディア英語版
Diamond-square algorithm

The diamond-square algorithm is a method for generating heightmaps for computer graphics. It is a slightly better algorithm than the three-dimensional implementation of the midpoint displacement algorithm which produces two-dimensional landscapes. It is also known as the random midpoint displacement fractal, the cloud fractal or the plasma fractal, because of the plasma effect produced when applied.
The idea was first introduced by Fournier, Fussell and Carpenter at SIGGRAPH 1982. It was later analyzed by Gavin S. P. Miller in SIGGRAPH 1986 who described it as flawed because the algorithm produces noticeable vertical and horizontal "creases" due to the most significant perturbation taking place in a rectangular grid.
The algorithm starts with a 2D grid then randomly generates terrain height from four seed values arranged in a grid of points so that the entire plane is covered in squares.
==The Algorithm==
The diamond-square algorithm begins with a 2D array of size 2n + 1. The four corner points of the array must firstly be set to initial values.
The diamond and square steps are then performed alternately until all array values have been set.
The diamond step.
For each square in the array, set the midpoint of that square to be the average of the four corner points plus a random value.
The square step.
For each diamond in the array, set the midpoint of that diamond to be the average of the four corner points plus a random value.
At each iteration, the magnitude of the random value should be reduced.
During the square steps, points located on the edges of the array will have only three adjacent values set rather than four. There are a number of ways to handle this complication - the simplest being to take the average of just the three adjacent values. Another option is to 'wrap around', taking the fourth value from the other side of the array. When used with consistent initial corner values this method also allows generated fractals to be stitched together without discontinuities.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Diamond-square algorithm」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.